<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
%>
<jsp:useBean id="user" class="cn.com.zpark.bean.User" scope="request">
    <jsp:setProperty name="user" property="username" value="张三" />
    <jsp:setProperty name="user" property="pwd" value="root" />


    <jsp:getProperty name="user" property="username"/>
</jsp:useBean>
</body>
</html>